package com.generic.potential.type.demo2;

import java.util.Collection;

/**
 * 适配器，适配Collection接口的方法
 * 
 * @author Administrator
 *
 * @param <T>
 */
public class Adapter<T> implements Addable<T> {

	private Collection<T> c;

	public Adapter(Collection<T> c) {
		this.c = c;
	}

	public void add(T item) {
		c.add(item);
	}

}
